package test.com.sky.designPattern.observerPattern.listener;

import com.sky.JULLog.MyLogger;

import java.util.logging.Logger;

/**
 * @author : wushikai
 * <p>
 * date : 2022-05-27
 */
class SaveUserListener implements MyEventListener {

    private  static Logger log = MyLogger.getLogger(SaveUserListener.class);

    @Override
    public void handleRegSuccess(UserEvent event) {
        log.info("用户已注册.");
        User user = (User) event.getSource();
        user.saveUser();

    }
}



